﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Contructor
{   
    public class bird
{
        public string name;
        public int weight;
        public string color;

        public bird()
        {
            name = "88K7383";
            weight = 30;
            color = "Red";
        }
        public bird(string name,int weight,string color)
        {
            Name = name;
            Weight = weight;
            Color = color;
            //Console.WriteLine("\t",this.name);
            //Console.WriteLine("\t",this.weight);
            //Console.WriteLine("\t", this.color);
        }
        public string Name { get; set; }
        public int Weight { get; set; }
        public string Color { get; set; }
        public string Detail()
        {
            return Name + " is " + Weight + "kg" + " and he like " + Color; 
        }
}
    class Program
    {
        static void Main(string[] args)
        {
            bird b = new bird();
            b.name = "ABC_D";
            b.weight = 40;
            b.color = "Red";
            Console.WriteLine("\t" + b.name);
            Console.WriteLine("\t" + b.weight);
            Console.WriteLine("\t" + b.color);
            Console.WriteLine("=================================");
            bird b2 = new bird("ACDA",20,"blue");
            b2.Name = "George";
            Console.WriteLine(b2.Detail());

            //Console.WriteLine("\t", b2.name);
            //Console.WriteLine("\t",b2.weight);
            //Console.WriteLine("\t", b2.color);
            //Console.WriteLine("\t",b2.name);
        }
    }
}
